package com.lovo.web.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@TableName("productinfo")
@ApiModel(value = "商城前端商品详细表", description = "商城前端商品详细表")
public class ProductInfoBean {
    @TableId(value = "pk_productInfoId",type = IdType.AUTO)
    @ApiModelProperty(value = "商城前端商品详细表id")
    private long productInfoId;
    @TableField("pi_productName")
    @ApiModelProperty(value = "商品名")
    private String productName;
    @TableField("pi_price")
    @ApiModelProperty(value = "售价")
    private float price;
    @TableField("pi_img")
    @ApiModelProperty(value = "图片")
    private String img;
    @TableField("pi_inventory")
    @ApiModelProperty(value = "库存")
    private int inventory;
    @TableField("pi_specs")
    @ApiModelProperty(value = "规格")
    private String specs;
    @TableField(exist = false)
    @ApiModelProperty(value = "商品对象")
    private ProductBean product;

}
